const dbMod = require('../db/dbMod')

function getpart (callback) {
  let sql = 'SELECT * FROM `partition`'
  dbMod.query(sql, [], (result) => {
    callback(eval(result))
  })
}

exports.getpart = getpart